import BookingManagerComp from "containers/booking-management/booking-manager";
import BookingCommissionerComp from "containers/booking-management/booking-commissioner";
import BookingDetails from "containers/booking-management/booking-details";

//订票管理
const bookingManagement = {
  key:'booking-management',
  icon: 'bars',
  hasRole:['ROLE_COMPANY_BOOK_ADMIN','ROLE_COMPANY_BOOK'],
  fpItem: ["booker.disabled"],
  fpValue: [[false,undefined]],
  subMenu: [
    //订票主管
    {
      key:'booking-manager',
      url:'/main/booking-management/booking-manager',
      components: BookingManagerComp ,
      parent: 'booking-management',
    },
    //订票专员
    {
      key: 'booking-commissioner',
      url: '/main/booking-management/booking-commissioner',
      components: BookingCommissionerComp,
      parent: 'booking-management',
      children: {
        BookingDetails: {
          key: 'booking-details',
          url: '/main/booking-management/booking-commissioner/booking-details/:applicationOID/:recordOID/:isNew',
          components: BookingDetails,
          parent: 'booking-commissioner'
        }
      }
    }
  ]
};

export default bookingManagement
